home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2000 July / CD 3 / redhat-6.2.iso / RedHat / instimage / usr / lib / python1.5 / site-packages / gnome / file.py < prev    next >
Encoding:
Python Source  |  2000-02-16  |  353 b   |  11 lines

  1. import _gnome, gnome
  2.  
  3. if not gnome.gnomelib_init_called:
  4.     _gnome.gnomelib_init(gnome.app_id, gnome.app_version)
  5.     gnome.gnomelib_init_called = 1
  6.  
  7. def convert_stream(fd, fromtype, totype):
  8.     return _gnome.gnome_file_convert_stream(fd, fromtype, totype)
  9. def convert(filename, fromtype, totype):
  10.     return _gnome.gnome_file_convert(filename, fromtype, totype)
  11.